Contents
  1. 1. Introduction
  2. 2. 反省
  3. 3. 纠正
  4. 4. 参考链接
  5. 5. OVER

Introduction

SSH程序启动时报错误nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException

反省

这里首先要反省一下,有些错误不是真正的错误,很可能是由于某些已有的错误引起的错误。

今天就是很好的一个例子。

在启动SSH程序时,遇到了很多的问题。是由一个问题引出的其他问题,在错误中显示为“nested”,即“嵌套”。所以要注意“真正”的错误。这里的问题是“nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentException”

纠正

经过查看参考链接1一下文字发现问题处在tomcat。把dom4j.jar放入tomcat的/bin目录,重启即可。
>
Thx Enrico.I didn’t use Tomcat but Glassfish instead. I found the solution this morning. Just like you mentioned,it’s in Tomcats’libs,but not in Glassfish’s.So I added it into the lib also others jars. That could solve all the problems about “java.lang.NoClassDefFoundError:…Exception.. .

参考链接

参考链接1

OVER

Contents
  1. 1. Introduction
  2. 2. 反省
  3. 3. 纠正
  4. 4. 参考链接
  5. 5. OVER